let initialState={}

let userReducer=(state=initialState,action:{type:string,payload:any})=>{
    let {type,payload}=action
    switch(type){
        case 'SET_USERINFO':
            return {...payload}
        default:
            return {...state}
    }
}
export default userReducer